package com.wiscamp.ninechapters.challenges.application.dto;

import lombok.Data;

import java.io.Serializable;

@Data
public class ProblemTupleDTO<A, B, C, D> implements Serializable {
    private static final long serialVersionUID = 5730984953372769076L;

    public final A isCorrect;

    public final B gainPoints;

    public final C hurt;

    public final D spendSeconds;

    public ProblemTupleDTO(A a, B b, C c, D d) {
        isCorrect = a;
        gainPoints = b;
        hurt = c;
        spendSeconds = d;
    }

    public String toString() {
        return "(" + isCorrect + ", " + gainPoints + ", " + hurt + ", " + spendSeconds + ")";
    }
}
